package www.sofn.com.security.domain.vo;

import lombok.*;
import lombok.experimental.Accessors;

import java.util.Set;

@Data
@EqualsAndHashCode
@Accessors(chain = true)
@ToString
@NoArgsConstructor
@AllArgsConstructor
public class TokenInfoVO {

    public  TokenInfoVO(String username,Set<String> authorities ){
        this.username=username;
        this.authorities=authorities;
    }
    /**
     * 用户唯一标识
     */
    private String tokenId;
    /**
     * 用户账号
     */
    private String username;

    /**
     * 权限
     */
    private Set<String > authorities;

    /**
     * 登录时间
     */
    private Long loginTime;

    /**
     * 过期时间单位毫秒
     */
    private Long expireTime;

    /**
     * 登录IP地址
     */
    private String ipaddr;

    /**
     * 登录地点
     */
    private String loginLocation;

    /**
     * 浏览器类型
     */
    private String browser;

    /**
     * 操作系统
     */
    private String os;

}
